<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="width=device-width, initial-scale=1.0">
<title>重庆伴美科技有限责任公司门户网站后台系统</title>
<!-- 导入fontawesome的图标样式文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.css">
<link rel="stylesheet" href="css/main.css">
</head>

<body>
	
	<?php  include 'action/session_check.php'; //登录判断  ?> 
	<div class="content">
	<div class="menu-box">
		<!-- 展示与隐藏侧边栏 开始 -->
		<input type="checkbox" id="menu-btn">
		<label for="menu-btn"><i class="fa fa-angle-left"></i></label>
		<!-- 展示与隐藏侧边栏 结束 -->
		<div class="menu">
		<!-- 侧边栏的标题 开始 -->
			<div class="menu-title">
                <?php
				require_once("../conn/conn_db.php");
				$name = $_SESSION["user"];
				$sql = "select * from  admin_info where a_name='$name'";
				$result = $conn->query($sql);//执行SQL语句
                //遍历查询结果的每一行
                if ($result->num_rows > 0) {
                while($row = $result->fetch_array()){
				?>
				<img src='../<?php echo $row['a_header'];?>' alt="Administor">
				<?php 
                          }
                     } 
                ?>
				
				<br>
				<span><?php echo $_SESSION['user'];?></span>
				<a href="login.php">退出登录</a>
			</div>
	<!-- 侧边栏的标题 结束 -->
			
			<!-- 每一项导航 -->			
			<div class="menu-item">
			<input type="checkbox" id="menu-item1">
				<label for="menu-item1">
				<i class="fa fa-user"></i>
					<span>管理员</span>
					<i class="fa fa-angle-down"></i>
				</label>
				<div class="menu-content">
				<span><a href="admin_add.php" target="mainframe">添加管理员</a></span>
				<span><a href="admin_manager.php" target="mainframe">管理员管理</a></span>
				</div>
			</div>
			
			<div class="menu-item">
			<input type="checkbox">
				<label>
				<i class="fa fa-address-book"></i>
					<span><a href="user_manager.php" target="mainframe">用户管理</a></span>
				</label>
			</div>
			
			<div class="menu-item">
			<input type="checkbox" id="menu-item2">
				<label for="menu-item2">
				<i class="fa fa-list-alt"></i>
					<span>新闻</span>
					<i class="fa fa-angle-down"></i>
				</label>
				<div class="menu-content">
				<span><a href="newstype_add.php" target="mainframe">添加类别</a></span>
				<span><a href="newstype_manager.php" target="mainframe">类别管理</a></span>
				<span><a href="news_add.php" target="mainframe">添加新闻</a></span>
				<span><a href="news_manager.php" target="mainframe">新闻管理</a></span>
				</div>
			</div>
			
			<div class="menu-item">
			<input type="checkbox" id="menu-item3">
				<label for="menu-item3">
				<i class="fa fa-bullhorn"></i>
					<span>招聘</span>
					<i class="fa fa-angle-down"></i>
				</label>
				<div class="menu-content">
				<span><a href="recruittype_add.php" target="mainframe">添加招聘类别</a></span>
				<span><a href="recruittype_manager.php" target="mainframe">招聘类别管理</a></span>
				<span><a href="recruit_add.php" target="mainframe">添加招聘信息</a></span>
				<span><a href="recruit_manager.php" target="mainframe">招聘信息管理</a></span>
				</div>
			</div>
			
			<div class="menu-item">
			<input type="checkbox" id="menu-item4">
				<label for="menu-item4">
				<i class="fa fa-cubes"></i>
					<span>产品</span>
					<i class="fa fa-angle-down"></i>
				</label>
				<div class="menu-content">
				<span><a href="producttype_add.php" target="mainframe">添加类别</a></span>
				<span><a href="producttype_manager.php" target="mainframe">类别管理</a></span>
				<span><a href="product_add.php" target="mainframe">添加产品</a></span>
				<span><a href="product_manager.php" target="mainframe">产品管理</a></span>
				</div>
			</div>
			
			<div class="menu-item">
			<input type="checkbox" id="menu-item5">
				<label for="menu-item5">
				<i class="fa fa-folder-open"></i>
					<span><a href="file_manager.php" target="mainframe">文件管理</a></span>
				</label>
				
			</div>
			
			<div class="menu-item">
			<input type="checkbox" id="menu-item6">
				<label for="menu-item6">
				<i class="fa fa-shopping-cart"></i>
					<span><a href="order_manager.php" target="mainframe">订单管理</a></span>
				</label>
				
			</div>
			
			<div class="menu-item">
			<input type="checkbox" id="menu-item6">
				<label for="menu-item6">
				<i class="fa fa-comment-dots"></i>
					<span><a href="contact_manager.php" target="mainframe">留言管理</a></span>
				</label>
			</div>
			
					
			<div class="set-line"></div>
			
			<div class="menu-item">
			<input type="checkbox">
				<label>
				<a href="../index.php" target="_blank">
					<i class="fa fa-home"></i>
					<span>门户首页</span></a>
				</label>
			</div>
			
		</div>
	</div>
	
		<!-- iframe框架显示 -->
		<div class="mainframe">
		 <iframe name="mainframe" style="width: 100%; height: 650px " ></iframe>
		</div>
		
	</div>
	
	
</body>
</html>